Optimal. Leaf size=26 \[ \frac{(x+1)^{m+1} \left (x^2+2 x+1\right )^n}{m+2 n+1} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0108419, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {644, 32} \[ \frac{(x+1)^{m+1} \left (x^2+2 x+1\right )^n}{m+2 n+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 644
Rule 32
Rubi steps
\begin{align*} \int (1+x)^m \left (1+2 x+x^2\right )^n \, dx &=\left ((1+x)^{-2 n} \left (1+2 x+x^2\right )^n\right ) \int (1+x)^{m+2 n} \, dx\\ &=\frac{(1+x)^{1+m} \left (1+2 x+x^2\right )^n}{1+m+2 n}\\ \end{align*}
Mathematica [A] time = 0.0107284, size = 23, normalized size = 0.88 \[ \frac{(x+1)^{m+1} \left ((x+1)^2\right )^n}{m+2 n+1} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 27, normalized size = 1. \begin{align*}{\frac{ \left ( 1+x \right ) ^{1+m} \left ({x}^{2}+2\,x+1 \right ) ^{n}}{1+m+2\,n}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.31031, size = 36, normalized size = 1.38 \begin{align*} \frac{{\left (x + 1\right )} e^{\left (m \log \left (x + 1\right ) + 2 \, n \log \left (x + 1\right )\right )}}{m + 2 \, n + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.18157, size = 63, normalized size = 2.42 \begin{align*} \frac{{\left (x + 1\right )}^{m}{\left (x + 1\right )}^{2 \, n}{\left (x + 1\right )}}{m + 2 \, n + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23872, size = 50, normalized size = 1.92 \begin{align*} \frac{{\left (x + 1\right )}^{m}{\left (x + 1\right )}^{2 \, n} x +{\left (x + 1\right )}^{m}{\left (x + 1\right )}^{2 \, n}}{m + 2 \, n + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]